const https = require('https')
const fs = require('fs')

const options = {
  key: fs.readFileSync('./key.pem'),
  cert: fs.readFileSync('key-cert.pem')
}


https.createServer(options, (req, res) => {
  res.end('Hello world')
}).listen(3000, () => {
  console.log('HTTP server running in port: https://localhost:3000/')
})